home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QRZ! Ham Radio 8
/
QRZ Ham Radio Callsign Database - Volume 8.iso
/
pc
/
files
/
t_sys5
/
unixkit.tgz
/
unixkit.tar
/
unixkit
/
tundrvr
/
tund
/
Makefile
< prev
next >
Wrap
Makefile
|
1989-05-07
|
2KB
|
99 lines
#################################################################
#
# Makefile for tunnel stuff
#
#
#
# Copyright (c) 1988, Julian Onions.
#
# This source may be freely distributed, however I would be interested
# in any changes that are made.
#
# Changes for SunOS4.0, eckert@uni-erlangen.de
#
# $Header: Makefile,v 1.4 88/07/11 08:28:32 jpo Exp $
#
# $Log: Makefile,v $
# Revision 1.4 88/07/11 08:28:32 jpo
# Some tidying up
#
# Revision 1.3 88/01/25 13:59:42 jpo
# New bits
#
# Revision 1.2 87/11/04 15:13:32 jpo
# Example and a few missing bits.
#
# Revision 1.1 87/11/04 10:30:49 jpo
# Initial revision
#
#
#################################################################
#
# Definitions
#
#################################################################
# for SunOs 4.0
CFLAGS = -g -DSUNOS4
# for SunOs 3.x
#CFLAGS = -g
CC = gcc -traditional
LDFLAGS = -g # -Bstatic
LINT = lint
LLFLAGS = -haxbc
DIST = README Makefile tund.c lcd.c tundebug.c tund.8c config.example \
tund.h tun.4n MAKEDEV.tun if_tun.c if_tnreg.h
OWNER = root
GRP = wheel
DESTDIR = /usr/local
#################################################################
#
# Rules ...
#
#################################################################
all: if_tnreg.h tund tundebug tun.4n tund.8c MAKEDEV.tun
tund: tund.o lcd.o
$(CC) $(LDFLAGS) -o $@ tund.o lcd.o
tund.o lcd.o: tund.h
lint: l-tund l-tundebug
l-tund: tund.c lcd.c
$(LINT) $(LLFLAGS) tund.c lcd.c
l-tundebug: tundebug.c
$(LINT) $(LLFLAGS) tundebug.c
tundebug: tundebug.c
$(CC) $(LDFLAGS) -o $@ tundebug.c
install: if_tnreg.h tund tundebug tun.4n tund.8c MAKEDEV.tun
install -m 644 -o $(OWNER) -g $(GRP) if_tnreg.h $(DESTDIR)/include/netinet
rm -f /usr/include/netinet/if_tnreg.h
ln -s $(DESTDIR)/include/netinet/if_tnreg.h /usr/include/netinet/if_tnreg.h
install -m 755 -o $(OWNER) -g $(GRP) tund tundebug $(DESTDIR)/etc
install -m 644 -o $(OWNER) -g $(GRP) tun.4n $(DESTDIR)/man/man4
install -m 644 -o $(OWNER) -g $(GRP) tund.8c $(DESTDIR)/man/man8
install -m 755 -o $(OWNER) -g $(GRP) MAKEDEV.tun /etc
clean: tidy
tidy:
rm -f *.o core a.out tunnel.shar
clobber: tidy
rm -f tund tundebug tags TAGS
sccs clean
shar: tunnel.shar
tunnel.shar: $(DIST)
shar -cv $(DIST) > $@
tar: $(DIST)
tar cvf tunnel.tar $(DIST)
compress tunnel.tar